import http from "@/utils/http";

const PPMService = {
	/**
	 * 获取PPM配置中的模板ID
	 * @param {}} condition
	 * @returns
	 */
	async loadPPMTempid(condition) {
		
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/executeSql`,
			// url: "http://192.168.1.71:8085/order/query/executeSql",
			data: condition,
			method: "GET",
		});
		return res;
	},

	/**
	 * 获取PPM配置数据
	 * "productId": "80007009",
	 * "serviceOfferId": "4040100098",
	 * "modType": "50200002",
	 * "optionId": "310"
	 * 新装时的后三个参数是这样的,其它业务会有变化
	 * @param {}
	 * @returns
	 */
	async qryPageTempAttr(condition) {
		let res = await http({
			// url: `${process.env.VUE_APP_CTX_PPM_QUERY}/qryPageTempAttr`,
			url: `http://192.1.218.89:8888/ppm-query-server/qryPageTempAttr`,
			data: condition,
			method: "POST",
		});
		return res;
	},
};
export default PPMService;
